package org.apache.struts2.plugin.json.writer;

import java.io.IOException;
import java.io.OutputStream;
import org.apache.struts2.plugin.json.model.JSONNumber;

/**
 * @author VERDOÏA Laurent <verdoialaurent@gmail.com>
 */
public class JSONNumberWriter extends AbstractJSONWriter<JSONNumber> {

    public JSONNumberWriter(JSONNumber content, OutputStream out) {
        super(content, out);
    }

    @Override
    public void writeContent() throws IOException {
        out.write(this.content.toString().getBytes());
    }
}
